package com.zjgsu.nftplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ahy231
 * @date 2022/3/6 11:30
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("议价")
public class Bargain {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("商品id")
    private Long wareId;
    @ApiModelProperty("买方id")
    private Long buyerId;
    @ApiModelProperty("买方用户名")
    private String buyerName;
    @ApiModelProperty("买方观点")
    private String buyerWords;
    @ApiModelProperty("卖方观点")
    private String sellerWords;
    @ApiModelProperty("当前议价")
    private BigDecimal price;
    @ApiModelProperty("议价状态：1/未处理 2/买家议价中 3/卖家议价中 4/已接受 5/已拒绝")
    private Integer status;
    @ApiModelProperty("开始时间")
    private Date time;
}
